﻿using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zo.Config;

namespace Logics
{
    /// <summary>
    /// 基础逻辑类
    /// </summary>
    public class BaseLogic
    {
        /// <summary>
        /// 表扩展名
        /// </summary>
        protected string table_prx { get => AppConfig.Table_prex; }
        /// <summary>
        /// 默认登录账户信息
        /// </summary>
        private Account account;

        protected Account _Account
        {
            get => account = getAccount();
        }

        public Account getAccount()
        {
            return new Sys.AccountLogic().Get();
        }


        //设置数据提供器
        public DataContext db { get; set; }
        
        protected BaseLogic()
        {
            db = new DataContext();
        }      
    }
  

}
